package com.linux.huhx.thread3.singleDesign_1;

/**
 * @Author: huhx
 * @Date: 2017-10-31 下午 4:48
 */
public class MyObject1 {
    // 立即加载方式 == 饿汉模式
    private static MyObject1 myObject = new MyObject1();

    private MyObject1() {}

    public static MyObject1 getInstance() {
        return myObject;
    }
}
